const express = require('express')
const cors = require('cors')
const adminRouter = require('./routers/admin')

const app = express()
app.use(cors())

// 后台数据接口路由
adminRouter(app)

app.listen(8080, () => {
  console.log('http://127.0.0.1:8080')
})
